package org.jivesoftware.smackx.packet;

import org.jivesoftware.smack.packet.PacketExtension;

public class Header
  implements PacketExtension
{
  private String name;
  private String value;

  public Header(String paramString1, String paramString2)
  {
    this.name = paramString1;
    this.value = paramString2;
  }

  public String getElementName()
  {
    return "header";
  }

  public String getName()
  {
    return this.name;
  }

  public String getNamespace()
  {
    return "http://jabber.org/protocol/shim";
  }

  public String getValue()
  {
    return this.value;
  }

  public String toXML()
  {
    return "<header name='" + this.name + "'>" + this.value + "</header>";
  }
}